package com.itheima.tlias84.controller;

import com.itheima.tlias84.dto.SelectGenderDTO;
import com.itheima.tlias84.service.GenderService;
import com.itheima.tlias84.utils.ResultUtil;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/report")
public class GenderController {
    @Resource
    GenderService genderService;
    @GetMapping("/empGenderData")
    public ResultUtil selectGender(){
        List<SelectGenderDTO> dtos = genderService.selectGender();
        return ResultUtil.success(dtos);
    }
}
